#include "myimageprovider.h"

MyImageProvider::MyImageProvider(QObject *parent)  : QQuickImageProvider(QQuickImageProvider::Image)
{
}

MyImageProvider *MyImageProvider::getInstance()
{
    static MyImageProvider* myImageProvider = new MyImageProvider();
    return myImageProvider;
}

QImage MyImageProvider::requestImage(const QString &id, QSize *size, const QSize &requestedSize)
{
    return m_image;
}
